quartz: Bug 674108 - Hard crash due to wrong NSAutoreleasePool stacking
authorMichael Natterer <mitch@gimp.org>
Fri, 14 Sep 2012 13:18:33 +0000 (15:18 +0200)
committerMichael Natterer <mitch@gimp.org>
Fri, 14 Sep 2012 13:22:18 +0000 (15:22 +0200)
commit1ad25dfb812f53d1b288d0816b1d0d85c1d24d9f
treee47c4a4664ca457b2715c42ccd1ed35098f90ab3
parente181ae84b864e35e6cf75920cf0f8665a662dc51
quartz: Bug 674108 - Hard crash due to wrong NSAutoreleasePool stacking

Apply patch from Kristian Rietveld which addresses two issues
in gdkeventloop-quartz.c:

This patch moves the autorelease pool drain and introduces protection against
the invalidated ufds. Basically, when we suspect ufds has been invalidated by a
recursive main loop instance, we refrain from calling the collect function.
(cherry picked from commit 79b3326eaab18b942bd7e03ae8d24544182cb3dd)
gdk/quartz/gdkeventloop-quartz.c